<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!--1,引入js,(注意不要自闭和)-->
<script src="js/echarts.js"></script>
<body>
<!--2准备一个容器-->
<div id="main" style="width: 400px;height: 300px;"></div>
</body>
<!--3，初始化一个echarts-->
<script>
    var mycharts = echarts.init(document.getElementById('main'));
    var option = {
        tooltip: {},
        xAxis: {
            data: ["一", "二", "三", "四", "五"]
        },
        yAxis: {},
        series: [{
        // name: '销量',
            type: 'bar',
            data: [5, 20, 36, 10, 10]
        }]
    };
    mycharts.setOption(option);
</script>
</html>